<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html lang="en">
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- adaptations.qdoc -->
  <title>Qt Quick Software Adaptation | Qt Quick 5.12.3</title>
  <link rel="stylesheet" type="text/css" href="style/offline-simple.css" />
  <script type="text/javascript">
    document.getElementsByTagName("link").item(0).setAttribute("href", "style/offline.css");
    // loading style sheet breaks anchors that were jumped to before
    // so force jumping to anchor again
    setTimeout(function() {
        var anchor = location.hash;
        // need to jump to different anchor first (e.g. none)
        location.hash = "#";
        setTimeout(function() {
            location.hash = anchor;
        }, 0);
    }, 0);
  </script>
</head>
<body>
<div class="header" id="qtdocheader">
  <div class="main">
    <div class="main-rounded">
      <div class="navigationbar">
        <table><tr>
<td ><a href="../qtdoc/index.html">Qt 5.12</a></td><td ><a href="qtquick-index.html">Qt Quick</a></td><td >
			Qt Quick软件适配</td></tr></table><table class="buildversion"><tr>
<td id="buildversion" width="100%" align="right"><a href="qtquick-index.html">Qt 5.12.3 参考指南</a></td>
        </tr></table>
      </div>
    </div>
<div class="content">
<div class="line">
<div class="content mainContent">
<div class="sidebar">
<div class="toc">
<h3><a name="toc">目录</a></h3>
<ul>
<li class="level2"><a href="file:///E:/_Personal/Qt5.12-Document-Trans-in-Chinese/qtquick/qtquick-visualcanvas-adaptations-software.html#shader-effects">着色器效果</a></li>
<li class="level2"><a href="file:///E:/_Personal/Qt5.12-Document-Trans-in-Chinese/qtquick/qtquick-visualcanvas-adaptations-software.html#qt-graphical-effects-module">Qt 图形效果模块</a></li>
<li class="level2"><a href="file:///E:/_Personal/Qt5.12-Document-Trans-in-Chinese/qtquick/qtquick-visualcanvas-adaptations-software.html#particle-effects">粒子效果</a></li>
<li class="level2"><a href="file:///E:/_Personal/Qt5.12-Document-Trans-in-Chinese/qtquick/qtquick-visualcanvas-adaptations-software.html#rendering-text">渲染文本</a></li>
<li class="level2"><a href="file:///E:/_Personal/Qt5.12-Document-Trans-in-Chinese/qtquick/qtquick-visualcanvas-adaptations-software.html#qt-multimedia-videooutput">Qt 多媒体视频输出</a></li>
</ul>
</div>
<div class="sidebar-content" id="sidebar-content"></div></div>
<h1 class="title"><a href="file:///E:/_Personal/Qt5.12-Document-Trans-in-Chinese/qtquick/qtquick-visualcanvas-adaptations-software.html#qt-multimedia-videooutput">Qt 多媒体视频输出</a></h1>
<span class="subtitle"></span>
<!-- $$$qtquick-visualcanvas-adaptations-software.html-description -->
<div class="descr"> <a name="details"></a>
<p>软件适配是<a href="qtquick-index.html">Qt Quick</a> 
2的替代渲染器，它使用光栅绘制引擎来渲染场景图的内容，而不是OpenGL。由于没有使用OpenGL渲染场景图，一些功能和优化不再可用。大多数Qt Quick 
2应用程序无需修改即可运行，但是任何使用不受支持特性的尝试都将被忽略。通过使用软件适配，可以在不支持OpenGL的硬件和平台上运行Qt Quick 2应用程序。</p>
<p>软件适配之前被称为Qt Quick 2D 
渲染器。然而，与2D渲染器不同的是，新的集成版本支持部分更新。这意味着现在避免了窗口或屏幕内容的全部更新，只有更改的区域会被刷新。这可以显著提高许多应用程序的性能。</p>
<a name="shader-effects"></a>
<h3 >着色器效果</h3>
<p><a href="file:///E:/_Personal/Qt5.12-Document-Trans-in-Chinese/qtquick/qtquick-module.html">QtQuick</a> 2 中的<a href="file:///E:/_Personal/Qt5.12-Document-Trans-in-Chinese/qtquick/qml-qtquick-shadereffect.html">ShaderEffect</a>组件无法通过软件适配进行渲染。</p>
<a name="qt-graphical-effects-module"></a>
<h3 >Qt 图形效果模块</h3>
<p><a href="file:///E:/_Personal/Qt5.12-Document-Trans-in-Chinese/qtgraphicaleffects/qtgraphicaleffects-index.html">Qt 
<span lang="zh-cn">图形效果</span></a>使用<a href="file:///E:/_Personal/Qt5.12-Document-Trans-in-Chinese/qtquick/qml-qtquick-shadereffect.html">ShaderEffect</a>项来渲染效果。如果您使用此模块的图形效果，则不应隐藏源项目，以便仍然可以渲染原始项目。</p>
<a name="particle-effects"></a>
<h3 >粒子效果</h3>
<p>无法使用软件<span lang="zh-cn">适配</span>来渲染粒子效果。尽可能从场景中完全移除粒子。否则它们仍然需要一些处理，即使它们不可见。</p>
<a name="rendering-text"></a>
<h3 >渲染文本</h3>
<p>使用Software适配的文本渲染是基于软件光栅化的，不像使用OpenGL时那样对缩放等转换做出响应。其质量类似于选择文本项的<a href="qml-qtquick-text.html#renderType-prop">Text.NativeRendering</a>。</p>
<a name="qt-multimedia-videooutput"></a>
<h3 >Qt 多媒体视频输出</h3>
<p>软件适配不支持Qt Multimedia 模块的<a href="file:///E:/_Personal/Qt5.12-Document-Trans-in-Chinese/qtmultimedia/qml-qtmultimedia-videooutput.html">VideoOutput</a>项。这是因为<a href="file:///E:/_Personal/Qt5.12-Document-Trans-in-Chinese/qtmultimedia/qml-qtmultimedia-videooutput.html">VideoOutput</a>使用<a href="file:///E:/_Personal/Qt5.12-Document-Trans-in-Chinese/qtmultimedia/qvideorenderercontrol.html">QVideoRendererControl</a>项，该项需要自定义<a href="file:///E:/_Personal/Qt5.12-Document-Trans-in-Chinese/qtquick/qsggeometrynode.html">QSGGeometryNode</a>行为，该行为仅存在于默认 OpenGL 适配中。</p>
</div>
<!-- @@@qtquick-visualcanvas-adaptations-software.html -->
        </div>
       </div>
   </div>
   </div>
</div>
<div class="footer">
   <p>
   <acronym title="Copyright">&copy;</acronym> 2019 The Qt Company Ltd.
   Documentation contributions included herein are the copyrights of
   their respective owners.<br/>    The documentation provided herein is licensed under the terms of the    <a href="http://www.gnu.org/licenses/fdl.html">GNU Free Documentation    License version 1.3</a> as published by the Free Software Foundation.<br/>    Qt and respective logos are trademarks of The Qt Company Ltd.     in Finland and/or other countries worldwide. All other trademarks are property
   of their respective owners. </p>
</div>
</body>
</html>
